package cn.book.zen_of_dp.singleton;

/**
 * @Auther: Huanyu Lee
 * @Date: 2022/3/3  16:59
 * @Description: 皇帝类
 */
public class Emperor {
    private static final Emperor emperor = new Emperor();
    private Emperor(){ }
    public static Emperor getInstance(){
        return emperor;
    }
    public void say(){
        System.out.print("我就是皇帝xxx ——> ");
        System.out.println(this.hashCode());
    }
}
